class Admin::UsersController < DefaultController
  require_role self.parent_name.underscore

  active_scaffold :user do |config|
    config.label = "Gestione Utenti"
    config.theme = :default
    config.columns = [:id, :username, :fullname, :roles, :email, :firma]
    config.create.columns.exclude :id
    config.create.columns.add [:password, :password_confirmation]
    config.columns[:roles].form_ui = :select
    config.update.columns.add :custom_menu
  end

  def manage
  end
end
